<?php

// mbilling/BillingBundle/Entity/ordersTarifsTerms.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 */
class ordersTarifsTerms
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="float")
     */
    protected $term;
    
    /**
     * @ORM\Column(type="integer")
     */
    protected $tarif_id;

    /**
     * @ORM\Column(type="integer")
     */
    protected $tarif_type_id;
    
    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setTerm($term)
    {
        $this->term = $term;
    }
    public function getTerm()
    {
        return $this->term;
    }

    public function setTarifId($tarif_id)
    {
        $this->tarif_id = $tarif_id;
    }
    public function getTarifId()
    {
        return $this->tarif_id;
    }

    public function setTarifTypeId($tarif_type_id)
    {
        $this->tarif_type_id = $tarif_type_id;
    }
    public function getTarifTypeId()
    {
        return $this->tarif_type_id;
    }
    
    public function initDefaultEntity()
    {
        $this->setTerm('2');
        $this->setTarifId('1');
        return $this;
    }  
}
?>
